package com.atguigu.cloud.order;

import com.atguigu.cloud.myrule.MySelfRibbonRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@EnableEurekaClient
// order-service-80 入驻eureka集群
@ComponentScan(basePackages = {"com.atguigu.cloud.common","com.atguigu.cloud.order"})
@RibbonClient(name = "CLOUD-PAYMENT-SERVICE",configuration = MySelfRibbonRule.class)
public class OrderApp80 {
    public static void main(String[] args) {
        SpringApplication.run(OrderApp80.class,args);
    }
}
